package com.jy.rhin.model.header;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/3 16:55
 * @Description 文档创建者
 */
@Data
public class Author {

    @XPath(path = "/time/@value")
    String time;
    //医生唯一标识    根据不同业务赋值 不验证
    @XPath(path = "/assignedAuthor/id/@extension")
    String id;
    //医生姓名
    @XPath(path = "/assignedAuthor/assignedPerson/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_039_00,nullable=true))
    String name;
    //患者就诊的医疗机构标识
    @XPath(path = "/assignedAuthor/representedOrganization/id/@extension", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_052_00,nullable=true))
    String organizationId;
    //名称
    @XPath(path = "/assignedAuthor/representedOrganization/name/text()")
    String organizationName;
    //电话
    @XPath(path = "/assignedAuthor/representedOrganization/telecom/@value")
    String organizationTelecom;
    //地址
    @XPath(path = "/assignedAuthor/representedOrganization/addr/text()")
    String organizationAddr;
}
